import sys,os,json

if __name__ == "__main__":
  param_fname = sys.argv[1]
  cmdk = sys.argv[2]
  print("received paramsfname={} \n", param_fname)
  print("received cmdk={} \n", cmdk)
  with open(param_fname,'r') as f:
    params = json.load(f)
    cmds = params[cmdk]
    for cmd in cmds:
      os.system(cmd)
